package com.igelato.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
    import lombok.experimental.Accessors;


/**
 * @TableName: coupon
 * @Description: 
 * @Author: wht
 * @Date: 2024-01-25
 */
@Data
    @Accessors(chain = true)
public class Coupon implements Serializable{
                @TableId(value = "id", type = IdType.AUTO)
                private Long id;
        private Integer batch_id;
        private Integer user_id;
        @ApiModelProperty("1：未领取；2；已领取；3：已使用；4：已过期；5：已冻结；")
        private Byte status;
        private LocalDateTime received_time;
        @ApiModelProperty("有效期（当优惠券时效是days时，则这里的有效期是在用户领取时计算得到），即优惠券截止时间，如果值为null则表示永久有效")
        private LocalDateTime valid_time;
        private LocalDateTime used_time;
@TableField(exist = false)
private static final long serialVersionUID=1L;

        }
